<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>注册</title>
    <link rel="shortcut icon" href="public/favicon.ico" type="image/x-icon">
    <link rel="stylesheet" type="text/css" href="/stylesheets/reset.css" />
    <link rel="stylesheet" type="text/css" href="/stylesheets/register.css" />
</head>

<body>
    <div class="pos">
        <div class="login">
            <span class="close iconfont icon-close"></span>
            <img src="/images/login/loginlogo.png" alt="">
            <ul>
                <li></li>
                <li class="phone">使用手机号登陆</li>
                <li></li>
            </ul>
            <form action="/register" id="form" method="post">
                <input style="margin-top: 0;" type="text" name="username" id="" placeholder="请输入您的手机号">

                <input type="password" name="password" id="" placeholder="请输入密码">


                <input class="left" type="text" name="photo" id="" placeholder="验证码">
                <img class="tp" src="http://localhost:3000/yzm1?id=1111" alt="">


                <!-- <span class="tips">密码或账号不对</span> -->
                <div class="clear"></div>
                <button class="loginbtn">注册</button>
            </form>

            <p>
                <input type="checkbox" class="xuanze" />
                <span><a href="javascript:;">我同意 《用户使用协议》</a></span>
                <span>
                    已有账号
                    <a href="javascript:;">去登陆</a>
                </span>
            </p>
        </div>
    </div>

    <script>
        let img = document.querySelector('.tp');

        //点击生成当前时间戳作为参数 ，重新赋值给img标签的src属性

        img.onclick = function () {
            let s = new Date().getTime();
            console.log(s);
            this.src = 'http://localhost:3000/yzm1?id=' + s

        }
    </script>
</body>
</body>

</html>